class HomeAnnouncementMdoel {
  int? id;
  int? type;
  int? matchId;
  String? newsUrl;
  String? title;
  String? author;
  String? content;
  int? publishTime;

  HomeAnnouncementMdoel({
    this.id,
    this.type,
    this.matchId,
    this.newsUrl,
    this.title,
    this.author,
    this.content,
    this.publishTime,
  });

  factory HomeAnnouncementMdoel.fromJson(Map<String, dynamic> json) {
    return HomeAnnouncementMdoel(
      id: json['id'] as int?,
      type: json['type'] as int?,
      matchId: json['match_id'] as int?,
      newsUrl: json['news_url'] as String?,
      title: json['title'] as String?,
      author: json['author'] as String?,
      content: json['content'] as String?,
      publishTime: json['publish_time'] as int?,
    );
  }

  Map<String, dynamic> toJson() => {
        'id': id,
        'type': type,
        'match_id': matchId,
        'news_url': newsUrl,
        'title': title,
        'author': author,
        'content': content,
        'publish_time': publishTime,
      };
}
